package com.google.gwt.sample.dynatablerf.server;

import java.util.List;

import com.google.gwt.sample.dynatablerf.server.business.ControladorFactory;
import com.google.gwt.sample.dynatablerf.server.domain.MaterialProjeto;
import com.google.gwt.sample.dynatablerf.server.domain.MaterialProjetoQueryParams;

public class MaterialProjetoService {

	public List<MaterialProjeto> findAll(
			MaterialProjetoQueryParams materialProjetoQueryParams,
			int startIndex, int maxResult) {
		return ControladorFactory.getControladorMaterialProjeto().findAll(
				materialProjetoQueryParams, startIndex, maxResult);
	}

	public Long count(MaterialProjetoQueryParams materialProjetoQueryParams) {
		return ControladorFactory.getControladorMaterialProjeto().count(
				materialProjetoQueryParams);
	}

	public List<MaterialProjeto> findAll(String suggestion,
			MaterialProjetoQueryParams params, int maxResult) {
		return ControladorFactory.getControladorMaterialProjeto().findSuggestions(
				suggestion, params, maxResult);
	}
}
